<form name="frmlist" action="<?php echo $this->site['base_url']?>admin_product_popup/search" method="post">
<table class="form" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td width="10%"><?php echo Kohana::lang('product_lang.lbl_name')?>:</td>
    <td><input type="text" name="txt_name_search" id="txt_name_search" size="50" value="<?php echo isset($name)?$name:''?>"/></td>
  </tr>
  <tr>
    <td><?php echo Kohana::lang('product_lang.lbl_qty')?>:</td>
    <td><input type="text" name="txt_qty_search" id="txt_qty_search" size="50" value="<?php echo isset($qty)?$qty:''?>"/></td>
  </tr>
  <tr>
    <td><?php echo Kohana::lang('product_lang.lbl_price')?>:</td>
    <td><input type="text" name="txt_price_search" id="txt_price_search" size="50" value="<?php echo isset($price)?$price:''?>"/></td>
  </tr>
  <tr>
    <td colspan="2" style="text-align:center">
      <button type="submit" name="btn_search" id="btn_search" class="button search" />
      <span><?php echo Kohana::lang('admin_lang.btn_search')?></span>
      </button>
      &nbsp;
      <button type="button" name="btn_close" id="btn_close" class="button close" onclick="close_popup()"/>
      <span><?php echo Kohana::lang('admin_lang.btn_close')?></span>
      </button>
    </td>
  </tr>
</table>
<?php if(isset($mlist)){ ?>
<table class="list" align="center" cellspacing="1" cellpadding="5">
  <tr class="list_header">
    <td width="40"><?php echo Kohana::lang('admin_lang.lbl_action')?></td>
    <td nowrap="nowrap"><?php echo Kohana::lang('product_lang.lbl_id')?></td>
    <td><?php echo Kohana::lang('product_lang.lbl_name')?></td>
    <td><?php echo Kohana::lang('product_lang.lbl_qty')?></td>
    <td><?php echo Kohana::lang('product_lang.lbl_qty')?></td>
    <td nowrap="nowrap"><?php echo Kohana::lang('product_lang.lbl_our_price')?></td>
  </tr>
  <?php for($i=0; $i<count($mlist); $i++){ ?>
  <tr class="row<?php if($i%2 == 0) echo 2 ?>">
    <td style="text-align:center">
    <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_plus.png" onclick="javacript:sm_form(document.frmlist,'<?php echo $this->site['base_url']?>admin_product_popup/add/<?php if(isset($mr['orders_id'])) echo $mr['orders_id']?>/<?php echo $mlist[$i]['products_id']?>');" style="cursor:pointer"/>
    <input type="hidden" name="hd_id[]" id="hd_id[]" value="<?php echo $mlist[$i]['products_id']?>" />
    </td>
    <td style="text-align:center"><?php echo $mlist[$i]['products_id']?></td>
    <td><input type="text" name="txt_name[]" id="txt_name[]" size="40" value="<?php echo $mlist[$i]['products_name']?>"/></td>
    <td style="text-align:right"><?php echo $mlist[$i]['products_qty']?></td>
    <td style="text-align:right"><input type="text" class="text_number" name="txt_qty[]" id="txt_qty[]" value="1" size="5" /></td>
    <td style="text-align:right"><input type="text" class="text_number" name="txt_price[]" id="txt_price[]" size="5" value="<?php echo $mlist[$i]['products_our_price']?>"/></td>
  </tr>
  <?php } ?>
</table>
<?php } ?>
<div class='pagination'><?php echo $this->pagination?></div>
<input type="hidden" name="hd_order_id" id="hd_order_id" value="<?php echo isset($mr['orders_id'])?$mr['orders_id']:''?>" />
<input type="hidden" name="hd_type" id="hd_type" value="<?php echo isset($mr['type'])?$mr['type']:''?>" />
</form>
